function GetQueryString(name) {
  var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
  var r = window.location.search.substr(1).match(reg);
  if (r != null) return r[2];
  return null;
};
$("#payDate").datepicker({
  format: 'yyyy-mm'
});
$("#submitBTN").on("click", function() {
  var urlP = "action=sel";
  urlP += "&Order_AddDate=" + $("#payDate").val()+"&Order_RetailID="+$("#Order_RetailID").val();
  window.location.href = "FlowList.aspx?" + urlP;
});
if (GetQueryString("action") != null) {
  $("#payDate").val(GetQueryString("Order_AddDate"));
  $("#Order_RetailID").val(GetQueryString("Order_RetailID"));
};
$("#Order_RetailID").select2({
  width:"180px",
  placeholder: "请选择",
  allowClear: true
});
